'use strict'

const koa = require('koa');
const bodyparser = require('koa-bodyparser');
const cors = require('koa-cors');
const router = require('./router')
let app = new koa;

app.use(cors());
app.use(bodyparser());
app.use(router())
app.listen(8080);
console.log('http://localhost:8080');